package com.laolu.icon.win32;

import com.sun.jna.Memory;
import com.sun.jna.Native;
import com.sun.jna.Pointer;
import com.sun.jna.platform.win32.WinDef;
import com.sun.jna.platform.win32.WinNT;
import com.sun.jna.ptr.PointerByReference;
import com.sun.jna.win32.StdCallLibrary;
import com.sun.jna.win32.W32APIOptions;

public interface Shell32Extra extends StdCallLibrary {
	Shell32Extra INSTANCE = Native.load("shell32", Shell32Extra.class, W32APIOptions.DEFAULT_OPTIONS);
	
	// 解析快捷方式目标路径
	int SHGetPathFromIDListW(Pointer pidl, char[] path);
	
	WinNT.HRESULT SHGetDesktopFolder(PointerByReference ppshf);
	
	boolean SHGetSpecialFolderPath(WinDef.HWND owner, Memory path, int csidl, boolean create);
}
